<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/jquery-1.10.1.js">
		</script>
	</head>

	<body>
		<button>点击</button>
		<div class="text">
			这是div 的内容
		</div>
		<br />
		<input type="text" name="" id="" value="111111111" id="input" />
	</body>
	<script type="text/javascript">
		$.fn.abc = function() {
			console.log(this.text())
		}
		$(".text").abc();
		$.fn.extend({
			alertWhileClick: function() {
				console.log("11111111111")
				$(this).click(function() {
					alert($(this).val());
				});
			}
		});
		$("#input").alertWhileClick();
	</script>

</html>